package net.feixue.engine.atomjob;

/**
 * Created by zxxiao on 15/1/6.
 */
public class EngineFuture {
    /*
    任务是否完成
     */
    private boolean isFinish = false;

    public synchronized boolean getResult() {
        while (!isFinish) {
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        return true;
    }

    protected void setFinish(boolean isFinish) {
        this.isFinish = isFinish;
    }
}
